package com.hmy.finance.service.core.dto;

import cn.hutool.core.bean.BeanUtil;
import com.hmy.finance.bo.request.ReceivablesSumQueryRequest;
import java.io.Serializable;
import lombok.Data;

/**
 * 对账管理-总营收相关汇总字段入参
 */
@Data
public class ReceivableQueryDto implements Serializable {

    private static final long serialVersionUID = -7849744102494848105L;
    
    /**
     * 客户ID
     */
    private Long customerId;

    /**
     * 客户签约人id-企业客户时可选填该字段
     */
    private Long signatoryId;

    /**
     * 合同Id
     */
    private Long contractId;
    
    public static ReceivableQueryDto convertToDto(ReceivablesSumQueryRequest request){
        return BeanUtil.copyProperties(request, ReceivableQueryDto.class);
    }

}
